package day02;

import org.w3c.dom.ls.LSOutput;

import javax.crypto.spec.PSource;

//此类用于验证long类型的demo
public class Tset04 {
    public static void main(String[] args) {
        long a = 10000000000l;     //声明一个变量a值为100亿

        long b = 1000000000 * 2 * 10l;   //b的值为200亿，正常
        System.out.println(b);

        long e = 1000000000 * 3 * 10l;    //会溢出因为30的直接量为in类型，本身溢出
        System.out.println(e);

        long f = 1000000000l * 3 * 10;    //值为300亿
        System.out.println(f);
    }
}
